package ink.tiptop.constant;

import ink.tiptop.common.cache.ECaches;

import java.util.Arrays;
import java.util.List;

/**
 * @author ink.tiptop.zjf
 * @Title: Ticket
 * @Package ink.tiptop.common.interceptor
 * @Description:
 * @date 2020-06-26 17:20
 */
public class AuthConst {

    /**
     * 一天的过期时间,可以用于登陆
     */
    public static final ECaches CACHE_TYPE = ECaches.DAY;
    /**
     * 这个5秒超时的可用作请求限制
     */
    public static final ECaches CACHE_TYPE_FORBID = ECaches.SHORT;

    /**
     * 其实这个sessionId是不对的,正确的应该是用 网页传递过来的sessionId
     */
    public static final String SESSION_ID = "SESSION_ID";

    /**
     * 通行的资源
     */
    public static final String[] RESOURCE =
            {".css", ".js", ".jpg", ".png", ".gif",
                    ".woff", ".ttf", ".svg", ".woff2",".eot",".otf",".html" ,".map"};

    /**
     * 通行的路径
     */
    public static final List<String> PATH_FREE =
            Arrays.asList("/login", "/zjfAuthUserInfo/login", "/zjfAuthUserInfo/add","/swagger-ui.html");

}
